local GameMap = class("GameMap", function(mapFile)
    return CGameTileMap:create("Map/pvp",1)
end)
function GameMap:ctor(data)
    print("GameMap")
    local pTileMap = self:GetTileMap()
--    self:SetOriScale(0.5)     -- 适配分辨率的scale
    local mapSize = self:GetPiexlSize()
--    local scale = td.GetAutoScale()--*0.7      -- 默认比例
--    local minScale = math.max( math.max(display.width/mapSize.width,display.height/mapSize.height),0.6*td.GetAutoScale())
--    scale = math.min(1.2*td.GetAutoScale(), math.max(minScale, scale))
    local scale = 0.5
    pTileMap:setScale(scale)
end

function GameMap:GetInstance()
	if GameMap.instance == nil then
		GameMap.instance = GameMap.new()
	end
	return GameMap.instance
end

function GameMap:initUI()
    self:CreateSpritePos(self.data.w,self.data.h,self.data.num_x,self.data.num_y)--单个长宽，长宽数量
    self:CreateSprite()

end


return GameMap